#include "EnRoute.h"
#include "Robot.h"
#include "Fige.h"

extern Robot* robot;

/**
 * arrete le robot
 */
void EnRoute::arreter()
{	
	((Fige *) Etat::getEtat("Fige"))->setEtatEnRoute(robot->getEtat().getTag());
	robot->changerEtat("Fige");
	std::cout << "S'arrête" << std::endl;
}
